package com.ruoyi.view.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.view.mapper.WeatherPushMapper;
import com.ruoyi.view.domain.WeatherPush;
import com.ruoyi.view.service.IWeatherPushService;
import com.ruoyi.common.core.text.Convert;

/**
 * weather_pushService业务层处理
 * 
 * @author ruoyi
 * @date 2023-04-11
 */
@Service
public class WeatherPushServiceImpl implements IWeatherPushService 
{
    @Autowired
    private WeatherPushMapper weatherPushMapper;

    /**
     * 查询weather_push
     * 
     * @param city weather_push主键
     * @return weather_push
     */
    @Override
    public WeatherPush selectWeatherPushByCity(String city)
    {
        return weatherPushMapper.selectWeatherPushByCity(city);
    }

    /**
     * 查询weather_push列表
     * 
     * @param weatherPush weather_push
     * @return weather_push
     */
    @Override
    public List<WeatherPush> selectWeatherPushList(WeatherPush weatherPush)
    {
        return weatherPushMapper.selectWeatherPushList(weatherPush);
    }

    /**
     * 新增weather_push
     * 
     * @param weatherPush weather_push
     * @return 结果
     */
    @Override
    public int insertWeatherPush(WeatherPush weatherPush)
    {
        return weatherPushMapper.insertWeatherPush(weatherPush);
    }

    /**
     * 修改weather_push
     * 
     * @param weatherPush weather_push
     * @return 结果
     */
    @Override
    public int updateWeatherPush(WeatherPush weatherPush)
    {
        return weatherPushMapper.updateWeatherPush(weatherPush);
    }

    /**
     * 批量删除weather_push
     * 
     * @param citys 需要删除的weather_push主键
     * @return 结果
     */
    @Override
    public int deleteWeatherPushByCitys(String citys)
    {
        return weatherPushMapper.deleteWeatherPushByCitys(Convert.toStrArray(citys));
    }

    /**
     * 删除weather_push信息
     * 
     * @param city weather_push主键
     * @return 结果
     */
    @Override
    public int deleteWeatherPushByCity(String city)
    {
        return weatherPushMapper.deleteWeatherPushByCity(city);
    }
}
